package com.mobisys.common.licensemanager;

import de.schlichtherle.license.LicenseManager;
import de.schlichtherle.license.LicenseParam;

/**
 *
 * @Author：qzxl
 * @Date：2020-12-17
 * @Description：license-service
 */
public class LicenseManagerHolder {

    private static LicenseManager licenseManager;

    public static synchronized LicenseManager getLicenseManager(LicenseParam licenseParams) {
        synchronized (LicenseManagerHolder.class) {
            if (licenseManager == null) {
                licenseManager = new LicenseManager(licenseParams);
            }
        }
        return licenseManager;
    }
}
